'use client';

import {useEffect} from 'react';
import {useRouter} from 'next/navigation';

export function SetDynamicRoute() {
  const router = useRouter();

  useEffect(() => {
    router.refresh();
  }, [router]);

  return <></>;
}